//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    viewList: "",
    viewArr: [{
      name: '五月天',
      id: "a"

    },
    {
      name: '周杰伦',
      id: "b"

    },
    {
      name: '林俊杰',
      id: "c"

    },
    {
      name: '王力宏',
      id: 'd'

    },
    {
      name: 'tank',
      id: "e"

    },
    {
      name: '王力宏',
      id: "f"

    },
    {
      name: 'tank',
      id: "g"

    },
    {
      name: '阿杜',
      id: "h"

    },
    {
      name: '陶喆',
      id: "i"

    }
    ],
    rightList: [
      {
        name: '五月天',
        id: "a"

      },
      {
        name: '周杰伦',
        id: "b"

      },
      {
        name: '林俊杰',
        id: "c"

      },
      {
        name: '王力宏',
        id: 'd'

      },
      {
        name: 'tank',
        id: "e"

      },
      {
        name: '王力宏',
        id: "f"

      },
      {
        name: 'tank',
        id: "g"

      },
      {
        name: '阿杜',
        id: "h"

      },
      {
        name: '陶喆',
        id: "i"

      }]
  },
  onLoad: function () {

  },
  scroll: function (data) {

  },
  itemClick: function (e) {
    console.log(e)
    this.setData({
      viewList: e.target.dataset.index
    })
  },
  goDetails: function () {// 进入详情页
    console.log(1)
    wx.navigateTo({
      url: '../videoDetails/videoDetails',
    })
  },
  onPullDownRefresh() {


  },
  onReachBottom() {// 监听触发到底部的事件
    console.log("1")
  }

})
